package io.renren.modules.alarmonline.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.alarmonline.entity.AreaalarmOnlineEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2022-08-30 15:43:53
 */
public interface AreaalarmOnlineService extends IService<AreaalarmOnlineEntity> {

    PageUtils queryPage(Map<String, Object> params);

    int insertItem(AreaalarmOnlineEntity areaalarmOnlineEntity);

    //根据坐标[{"uuid":"b9809a0e2dc44a509cc657b4e1a337cc","cardId":131249,"personName":"零件托盘11","posX":1229.117081,"posY":88.575989,"posTime":1694510800318,"isWork":0},{"uuid":"604f9c6baf4047b8ac876b6e64bac39c","cardId":131384,"personName":"BC0148X05","posX":1108.932858,"posY":151.872953,"posTime":1694515624665,"isWork":1},{"uuid":"de03e927fdc34489861dccb976f350a4","cardId":131960,"personName":"BC0097X05","posX":1075.67461,"posY":138.266143,"posTime":1694515627878,"isWork":1},{"uuid":"3bdb92e63a3f4d21bd32df478dc06014","cardId":132097,"personName":"吕志全","posX":1116.8938,"posY":191.845468,"posTime":1694515623043,"isWork":1},{"uuid":"3d87ae429ee148d1a167a0aae67dc212","cardId":132111,"personName":"BC0092D15","posX":1144.660762,"posY":206.727489,"posTime":1694515621822,"isWork":1},{"uuid":"b2a17c0a6a9247eb9714bca5a9b59fd1","cardId":132513,"personName":"货架17","posX":1115.0,"posY":155.0,"posTime":1694506406981,"isWork":0},{"uuid":"8b1b406b48c64f459c3613c640e2009a","cardId":133479,"personName":"BC0096D15","posX":1157.497213,"posY":123.553513,"posTime":1694515630370,"isWork":1}]
    //和区域{"msg":"success","code":0,"page":{"totalCount":2,"pageSize":10,"totalPage":1,"currPage":1,"list":[{"areaNo":10001,"areaId":"10001","areaName":"project1-1","areaPosX1":0.0,"areaPosY1":104.0,"areaPosX2":1350.0,"areaPosY2":230.0},{"areaNo":10002,"areaId":"10002","areaName":"project1-2","areaPosX1":450.0,"areaPosY1":300.0,"areaPosX2":1000.0,"areaPosY2":400.0}]}}
    //判断是否在区域内
    boolean isInArea();


    int deleteAllAlarm();

    List<AreaalarmOnlineEntity> selectByEmpName(String empName);

//    int insertItem(String areaId, String areaName, String lableId, String lableEmployid, String alarmTime);
}

